Free online tool

Free Online Profit Margin Calculator

Work out profit, margin and markup from cost and price, or find the price you need for a target margin, with fees taken into account.

Profit Margin CalculatorFree online tool. Runs in your browser.
Live

If you sell anything, from cupcakes to consulting, one question matters more than most: after I pay for everything, how much do I keep? Profit margin answers it as a percentage. This calculator takes your cost and price, adds any fees you pay on each sale, and tells you the profit, the margin and the markup. It can also work backwards from a margin you want to the price you should charge.

Profit, margin and markup

Term Formula Based on
Profit Price − cost − fees Money kept per item
Profit margin Profit ÷ price × 100 The selling price
Markup Profit ÷ cost × 100 The cost

Margin and markup describe the same profit from two angles, and people confuse them all the time. A product that costs 12 and sells for 20 earns 8. The margin is 8 ÷ 20 = 40 percent. The markup is 8 ÷ 12 = 66.7 percent. A 66.7 percent markup sounds impressive, but a 40 percent margin is the share of each sale you keep. Margin can never exceed 100 percent, while markup can.

How to use the calculator

  1. Choose what to find: the margin from cost and price, the price for a target margin or the highest cost for a target margin.
  2. Enter your cost per item and your selling price. Include everything that is part of making or buying the item: materials, packaging, labour you pay for, delivery to you.
  3. Enter any fees taken from each sale, as a percentage of the price. Marketplace, card and payment-platform fees often work this way. Check your own rates.
  4. Enter the number of items sold to see totals.
  5. Read the big margin, the tiles and the table of prices for other margins.

A worked example

Take a cost of 12 and a price of 20, with no fees. The profit is 8, the margin 40 percent and the markup 66.7 percent. Selling 100 items brings in 2,000 and a profit of 800. Now add a 10 percent fee. The fee is 2 on each sale, so the profit falls to 20 − 12 − 2 = 6, and the margin to 6 ÷ 20 = 30 percent. The fee has cut the profit by a quarter. This is why ignoring fees can make a business look healthier than it is.

Pricing for a target margin

If you want a certain margin, the price is cost ÷ (1 − fees − margin), with the percentages as decimals. For a cost of 12 and a margin of 50 percent with no fees, the price is 12 ÷ 0.5 = 24, and the profit is 12. Add a 10 percent fee and a 30 percent margin target: price = 12 ÷ (1 − 0.1 − 0.3) = 12 ÷ 0.6 = 20, which gives 6 profit and exactly 30 percent margin after the fee. The tool’s table shows the price you would charge for margins from 10 to 60 percent.

Margin wanted Price for a cost of 12 Profit per item
10% 13.33 1.33
20% 15.00 3.00
30% 17.14 5.14
40% 20.00 8.00
50% 24.00 12.00
60% 30.00 18.00

A 100 percent margin is impossible, because it would need a price of infinity for any cost above zero. The tool tells you if your margin and fees add up to 100 percent or more.

What counts as cost

The more complete your cost, the more honest your margin. Include the cost of the item or materials, packaging, shipping you pay, fees and payment charges, and the labour or time you spend, even if it is your own. Leave out fixed overheads, such as rent and software, only if you track them separately, and remember to cover them from your profit. Tax is a separate matter: sales tax collected from customers is not income, and income tax applies to profit. Ask an accountant for what applies to you.

What is a good margin?

There is no single answer. Margins differ greatly between industries: a grocery shop may live on thin margins and sell high volumes, while a software business may have very high margins. Compare yourself with similar businesses and with your own history. A margin that covers all your costs, pays you fairly and leaves a cushion for slow months is a healthy margin for you.

Common mistakes

  • Confusing markup with margin. A 50 percent markup is only a 33.3 percent margin.
  • Forgetting fees, packaging, returns and your own time.
  • Using the list price when most sales are discounted. Use the average price you actually receive.
  • Setting prices by copying competitors without checking your own costs.
  • Ignoring volume. A small margin on many sales can beat a large one on a few, but only if the volume really comes.

Privacy and limits

All maths happens in your browser, and your last numbers are saved there for convenience. Nothing is uploaded. The tool treats fees as a percentage of the price and keeps cost per item fixed. Real businesses have more moving parts, so treat the result as a guide. It is not financial or tax advice.

See the markup calculator for the cost-based view and the break-even calculator to see how many sales cover your fixed costs. Read the full guide to margin and markup for more examples, and take the pricing and profit course.

Key takeaways

  • Margin is profit over price; markup is profit over cost.
  • Include fees, packaging and your time in your costs.
  • Price = cost ÷ (1 − fee% − margin%).
  • A margin target above 100 percent minus fees is impossible.

Questions

What is the difference between profit margin and markup?

Margin is profit divided by the selling price, and markup is profit divided by cost. If something costs 12 and sells for 20, the profit is 8, the margin is 40 percent and the markup is 66.7 percent. Margin cannot exceed 100 percent, but markup can, which is why people often confuse them.

How do I calculate the price for a target margin?

Divide the cost by one minus the margin as a decimal, and also subtract any fee percentage. For a cost of 12 and a 50 percent margin with no fees, the price is 12 ÷ 0.5 = 24. With a 10 percent fee and a 30 percent margin, it is 12 ÷ 0.6 = 20.

Should I include fees in my profit calculation?

Yes. Marketplace, card and payment fees reduce what you keep from each sale. Enter them as a percentage of the price. For a 20 price with a 10 percent fee, the fee is 2, so profit and margin are lower. Ignoring fees can make a business look more profitable than it is.

What is a good profit margin?

It depends on the industry. Some businesses, such as grocery shops, run on small margins and high volume, while others, such as software, can have very high margins. A good margin for you covers all your costs, pays you fairly and leaves a cushion for slow periods. Compare with similar businesses.

Why does the tool say the target margin is impossible?

Because the margin plus the fee percentage reached 100 percent or more. At that point, the price would have to be infinite, since every sale has to cover costs as well as fees and profit. Lower the margin target or the fees, or reduce your costs.